package edu.neu.cs6515.xml.w12;

import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import com.google.java.contract.Requires;

import edu.neu.cs6515.xml.Tile;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * class to represent 
 * {@code <rerack> Tile Tile Tile Tile Tile Tile </rerack> }
 */
@XmlRootElement(name="rerack")
@NoArgsConstructor
@EqualsAndHashCode
public class Rerack {
    @Setter
    List<Tile> tile = new LinkedList<Tile>();
    
    public Rerack(final List<Tile> tile) {
        super();
        this.tile = tile;
    }

    @XmlElement
    public List<Tile> getTile() {
        return tile;
    }
    
}
